-----------------------------------	
-- Area: Bhaflau Thickets
-- NM: Emergent Elm
-- @zone 52
-- @pos 71.000 -33.000 627.000
-----------------------------------	

require("scripts/globals/settings");
require("/scripts/zones/Bhaflau_Thickets/MobIDs");
	
-----------------------------------	
-- onMobDeath	
-----------------------------------	
	
function onMobDeath(mob,killer)	

	-- Set EE's ToD
	SetServerVariable("[POP]Emergent_Elm", os.time(t) + (14400 /NM_TIMER_MOD)); -- 4 hours
	DeterMob(mob:getID(), true);

	-- Set PH back to normal, then set to respawn spawn
	PH = GetServerVariable("[PH]Emergent_Elm");
	SetServerVariable("[PH]Emergent_Elm", 0);
	DeterMob(PH, false);
	GetMobByID(PH):setRespawnTime(GetMobRespawnTime(PH));
  
end;
